 <h1>Contests attivi</h1>
 <div class="floatl">
    <table>
        <tr>
            <td>
                <input type="radio" name="view" onchange="contestsHide('voting');"/> In votazione 
                <input type="radio" name="view" onchange="contestsHide('subscription');"/> Iscrizioni in corso <br/>
                <input type="radio" name="view" onchange="contestsHide('none');" checked="checked"/> Tutti
            </td>
            <td></td>
        </tr>
    </table>
    <div id="contestContainer" >
    |£|if $activeContests[0]|@count != 0|\£|    
    |£|foreach key=key from=$activeContests item=item|\£|
        <div id="contestElement-|£|$item.id|\£|"
            |£|if $item.status == "subscription" || $item.status == "video_validation" || $item.status == "user_validation"|\£|    
                style="background-color:#fda1a1;"
            |£|/if|\£|    
            |£|if $item.status == "voting"|\£|    
                style="background-color:#77ff77;"
            |£|/if|\£|    
            class="contestElement contestStatus-|£|$item.status|\£|" onclick="getContestInfo('|£|$item.id|\£|')" >
            <div>|£|$item.title|\£|</div>
            <div>
                <table>
                    <tr>
                        <td>Data inizio</td>
                        <td>Data Fine</td>
                    </tr>
                    <tr>
                        <td>|£|$item.startDate|\£|</td>
                        <td>|£|$item.stopDate|\£|</td>
                    </tr>
                </table>
            </div>
        </div>
    |£|/foreach|\£|
    |£|else|\£|
        <div align="center"><strong>Non ci sono contest attivi</strong></div>
    |£|/if|\£|
    </div>
    </div>
    <div id="contestInfo">
    
    </div>
    <div class="clr"></div>